﻿using SqlSugar;

namespace WxBean.Core.Model
{
    /// <summary>
    /// 获取漫画章节
    /// </summary>
    [SugarTable("Comic_Chapter")]
    public class ComicChapter : RootEntityTkey<long>
    {
        /// <summary>
        /// UId
        /// </summary>
        public string ComicUId { get; set; }

        /// <summary>
        /// 章节与每一章图的Uid
        /// </summary>
        public string ChapterDetailUId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 章节名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 漫画Id
        /// </summary>
        public long ComicId { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string Url { get; set; }

        public string Description { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null) return false;
            if (!(obj is ComicChapter))
            {
                return false;
            }
            return this.Name.Equals((obj as ComicChapter).Name);
        }

        public override int GetHashCode()
        {
            return this.Name.GetHashCode();
        }
    }

   
}
